package com.starrysky.cakestore.service;

import com.starrysky.cakestore.dao.TypeDao;
import com.starrysky.cakestore.entity.Type;

import java.util.LinkedHashMap;
import java.util.List;

public class TypeService {
    public LinkedHashMap<Type, List<Type>> getTypeMap(){
        TypeDao dao = new TypeDao();
        LinkedHashMap<Type, List<Type>> typeMap = dao.findAll();
        return typeMap;
    }
}
